/*
2.Entity层：实体层，数据库在项目中的类
主要用于定义与数据库对象应的属性，提供get/set方法,tostring方法,有参无参构造函数。
 */
package com.dfrobot.demo.domain.entity;

import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "address")
public class Address {
    @Id
    @Column(name = "address_id")
    private Integer addressId;

    @Column(name = "customer_id")
    private Integer customerId;

    private String firstname;

    private String lastname;

    private String company;

    @Column(name = "address_1")
    private String address1;

    @Column(name = "address_2")
    private String address2;

    private String city;

    private String postcode;

    @Column(name = "country_id")
    private Integer countryId;

    @Column(name = "zone_id")
    private Integer zoneId;

    @Column(name = "custom_field")
    private String customField;
}